﻿
/*
NAILSUPERSTORE ® COMPANY
 
[HISTORY]
Created By  	: NGUYEN VAN TY
Created Date	: 12/14/2010
Modified By     :
Modified Date   :
Note            :

*/

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busState
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------
        public const string TABLE = "State";
        public const string STATEID = "StateId";     
        public const string STATECODE = "StateCode";
         public const string STATENAME = "StateName";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";     
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";


        private daoState _daoState;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busState()
        {
            _daoState = new daoState();
        }
        public StateCollection GetByCountry(string countryCode)
        {
            return _daoState.GetByCountry(countryCode);
        }
        public StateCollection GetByCountryId(int countryId)
        {
            return _daoState.GetByCountryId(countryId);
        }        
    }

}
